package com.yh.mapper;

import com.yh.javabean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Auther: als
 * @Date: 2024/5/30 - 05 - 30 - 19:46
 * @Description: com.yh.mapper
 * @version: 1.0
 */
@Mapper
public interface UserMapper {
   //查询user表所有数据
   List<User> selectAll();

  //根据id查询
   @Select("select * from user where uid=#{uid}")
   User selectByUid(int uid);
}
